home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
win
/
pascal
/
janus.exe
/
DLGTEST.RC
< prev
next >
Wrap
Text File
|
1993-02-14
|
5KB
|
109 lines
aMenu MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&Switch to non-MDI mode", $100
MENUITEM "&MDI_AllChildStyles", $101
MENUITEM SEPARATOR
MENUITEM "select &Printer", $110
MENUITEM SEPARATOR
MENUITEM "E&xit", $5F14
END
POPUP "&Modeless"
BEGIN
MENUITEM "&Dialog from standard resource", $200+0
MENUITEM "&BorDlg from standard resource", $200+1
MENUITEM SEPARATOR
MENUITEM "D&ialog from BorDlg resource", $200+2
MENUITEM "B&orDlg from BorDlg resource", $200+3
MENUITEM SEPARATOR
MENUITEM "OD &Listbox and MDI_SAllChildStyles", $200+4
END
POPUP "Mo&dal"
BEGIN
MENUITEM "&Dialog from standard resource", $300+0
MENUITEM "&BorDlg from standard resource", $300+1
MENUITEM SEPARATOR
MENUITEM "D&ialog from BorDlg resource", $300+2
MENUITEM "B&orDlg from BorDlg resource", $300+3
MENUITEM SEPARATOR
MENUITEM "OD &Listbox and MDI_SAllChildStyles", $300+4
END
POPUP "&Window"
BEGIN
MENUITEM "&Cascade", $5F11
MENUITEM "&Tile", $5F10
MENUITEM "Arrange &Icons", $5F0F
MENUITEM "Close &all", $5F12
MENUITEM SEPARATOR
MENUITEM "&About...", $1000
END
END
aBorDlg DIALOG 22, 24, 156, 108
STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX
CLASS "BorDlgDescendant"
CAPTION "a BorDlg - descendant"
MENU aMenu
FONT 8, "Helv"
BEGIN
CONTROL "a CheckBox", 201, "BorCheck", BS_AUTOCHECKBOX | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 12, 20, 54, 10
CONTROL "Radio Button 1", 202, "BorRadio", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 12, 33, 68, 10
CONTROL "Radio Button 2", 203, "BorRadio", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE, 12, 46, 66, 10
CONTROL "", -1, "BorShade", 2 | WS_CHILD | WS_VISIBLE, 0, 64, 156, 1
CONTROL "a GroupBox", 204, "BorShade", BSS_GROUP | WS_CHILD | WS_VISIBLE, 7, 6, 86, 51
CONTROL "", 206, "BorShade", 3 | WS_CHILD | WS_VISIBLE, 103, 0, 1, 65
LTEXT "This dialog was stored in resource as class 'BorDlgDescendant' if there is no BWCC.DLL present, you should see a standard dialog", -1, 5, 68, 146, 34
CONTROL "&Ok", 1, "BorBtn", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 113, 36, 36, 24
CONTROL "&Cancel", 2, "BorBtn", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 113, 7, 36, 24
END
aDialog DIALOG 18, 18, 156, 108
STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX
CAPTION "a standard dialog"
FONT 8, "Helv"
BEGIN
CONTROL "a CheckBox", 201, "BUTTON", BS_AUTOCHECKBOX | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 12, 20, 54, 10
CONTROL "Radio Button 1", 202, "BUTTON", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP, 12, 33, 68, 10
CONTROL "Radio Button 2", 203, "BUTTON", BS_AUTORADIOBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 12, 46, 66, 10
LTEXT "This dialog was stored in resource as a normal dialog; if BWCC.DLL is present, you might see a BorDlg!", -1, 5, 68, 146, 34
CONTROL "a GroupBox", 204, "button", BS_GROUPBOX | WS_CHILD | WS_VISIBLE, 5, 8, 79, 54
PUSHBUTTON "&Ok", 1, 113, 33, 36, 24, WS_CHILD | WS_VISIBLE | WS_TABSTOP
PUSHBUTTON "&Cancel", 2, 113, 8, 36, 24, WS_CHILD | WS_VISIBLE | WS_TABSTOP
END
unusual DIALOG 8, 16, 205, 136
STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION
CLASS "BorDlgUnusual"
CAPTION "an unusual MDI window"
FONT 8, "Helv"
BEGIN
CONTROL "", 10, "listbox", LBS_OWNERDRAWFIXED | LBS_NOTIFY | LBS_HASSTRINGS | LBS_USETABSTOPS | WS_BORDER | WS_VSCROLL | WS_CHILD, 7, 3, 146, 71
CONTROL "&Ok", 1, "BorBtn", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 163, 95, 36, 24
CONTROL "", -1, "BorShade", BSS_HDIP | WS_CHILD | WS_VISIBLE, 0, 76, 159, 1
LTEXT "This dialog has an unusual style if created under MDI/Win 3.1!", -1, 4, 108, 147, 19, WS_CHILD | WS_VISIBLE | WS_GROUP
CONTROL "", -1, "BorShade", BSS_VDIP | WS_CHILD | WS_VISIBLE, 158, 0, 1, 136
END
About DIALOG 12, 27, 155, 112
STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_THICKFRAME
CLASS "BorDlgAbout"
CAPTION "About DlgTest"
FONT 8, "Helv"
BEGIN
LTEXT "The DlgTest program demonstrates the use\nof tDialogWindow and tJanusDialogWindow.", -1, 4, 4, 147, 20, WS_CHILD | WS_VISIBLE | WS_GROUP
CONTROL "", 101, "BorShade", 2 | WS_CHILD | WS_VISIBLE, -2, 70, 158, 2
CTEXT "(c) 1992 by Peter Sawatzki\nCIS 100031,3002", -1, 4, 47, 147, 20, WS_CHILD | WS_VISIBLE | WS_GROUP
LTEXT "Both support modeless and modal dialogs\nas well as MDI and tScroller handling!", -1, 4, 24, 147, 20, WS_CHILD | WS_VISIBLE | WS_GROUP
CONTROL "&Ok", 1, "BorBtn", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 59, 81, 36, 24
END